package com.linkoog.devtools.http.request.common.response_body.text;

import com.linkoog.devtools.http.request.common.ResponseBodyType;
import com.linkoog.devtools.http.request.common.response_body.StringResponseBody;

public class PlainTextResponseBody extends StringResponseBody {

    public PlainTextResponseBody() {
    }

    public PlainTextResponseBody(String value) {
        this.value = value;
    }

    public static PlainTextResponseBody of(String value) {
        return new PlainTextResponseBody(value);
    }

    @Override
    public ResponseBodyType bodyType() {
        return ResponseBodyType.PLAIN_TEXT;
    }

    @Override
    public String toString() {
        return "PlainTextResponseBody{" +
                "value='" + value + '\'' +
                '}';
    }
}
